package org.example.rowing.enums;

public enum BoatTypeEnum {
    ROWING("赛艇"),
    KAYAK("皮艇"),
    CANOE("划艇");

    private final String displayName;

    BoatTypeEnum(String displayName) {
        this.displayName = displayName;
    }

    public String getDisplayName() {
        return displayName;
    }

    public static BoatTypeEnum fromDisplayName(String displayName) {
        for (BoatTypeEnum boatType : values()) {
            if (boatType.displayName.equals(displayName)) {
                return boatType;
            }
        }
        throw new IllegalArgumentException("Invalid display name: " + displayName);
    }
}
